package com.hqyj.controller;

import com.hqyj.pojo.PersonnelTransfer;
import com.hqyj.service.PersonnelTransferService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

@RestController
@RequestMapping("/PersonnelTransfer")
public class PersonnelTransferController {
    @Autowired
    PersonnelTransferService personnelTransferService;

    @RequestMapping("/selectList")
    public HashMap<String,Object> listPage(PersonnelTransfer p){

        return personnelTransferService.select(p);
    }
    @RequestMapping("/add")
    public HashMap<String,Object> addPage(PersonnelTransfer p){
        return personnelTransferService.add(p);
    }

    @RequestMapping("/del")
    public HashMap<String,Object> delPage(Integer id){
        return personnelTransferService.del(id);
    }

    @RequestMapping("/update")
    public HashMap<String,Object> updatePage(PersonnelTransfer p){
        return personnelTransferService.update(p);
    }

}
